
//import { NetTool, DataColumn } from 'common-list'
import { ref } from 'vue'
import { NetTool} from 'common-list'

export const netUtil = new NetTool()
export const TodoColumns = ref([
    {
        title: '代办事项',
        fieldName: 'itemname',

    },
    {
        title: '状态',
        fieldName: 'state',
        options:[],
        isHideInList: true
    },   
    {
        title: '状态',
        fieldName: 'stateText',
        isHideInForm: true
    },
    {
        title: '用户ID',
        fieldName: 'userid',
        isHideInForm: true,
        isHideInList: true
    },

]);
export const LoginUserColumns = ref([
    {
        title: '用户',
        fieldName: 'username',
        placeholder: '用户名/邮箱/手机号',
        required: true,
        isWholeRow: true,

    },
    {
        title: '密码',
        fieldName: 'pwd',
        required: true,
        // dataType: 'password',
        isWholeRow: true,
        isHideInList: true
    },
    
]);

export const RegUserColumns = ref([
    {
        title: '用户',
        fieldName: 'username',
        placeholder: '用户名/邮箱/手机号',
        required: true,
        isWholeRow: true,

    },
    {
        title: '密码',
        fieldName: 'pwd',
        required: true,
        // dataType: 'password',
        isWholeRow: true,
        isHideInList: true
    },
    {
        title: '确认密码',
        fieldName: 'confirmpwd',
        required: true,
        // dataType: 'password',
        isWholeRow: true,
        isHideInList: true
    },
    
    
]);
export const States=[    
    '未完成','完成'
]

export const TodoUrlSet = {
    // getListApiUrl: '/api/todolist/list',
    // getSingleApiUrl: '/api/todolist',
    // addApiUrl: '/api/todolist/create',
    // editApiUrl: '/api/todolist/update',
    // delApiUrl: '/api/todolist/delete',
    // multiSetApiUrl:'/api/todolist/multiset',
    // importApiUrl: '/api/todolist/importtodolists',
    restfulApiUrl:'/api/todolist',
    keyFieldName: 'id',
    title: '待办事项'
}

export const UserUrlSet = {
    // getListApiUrl: '/api/todolist/list',
    // getSingleApiUrl: '/api/todolist',
    addApiUrl: '/api/users/reg',
    // editApiUrl: '/api/todolist/update',
    // delApiUrl: '/api/todolist/delete',
    // multiSetApiUrl:'/api/todolist/multiset',
    // importApiUrl: '/api/todolist/importtodolists',
    checkApiUrl: '/mock/user/login',
    keyFieldName: 'id',
    title: '用户'
}